﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = Weapons
		Group                          = Firearms
		Size                           = Small
		Module                         = standard light autocannon
		CpuUsage                       = 5.00 TF
		ReactorUsage                   = 15.00 RP
		Type                           = Active
		Slot                           = Turret
		TechnologicalLevel             = T1
		Mass                           = 400.00 kg
		PackedVolume                   = 0.30 U
		Volume                         = 0.60 U
		AccumulatorConsumption         = 1.00 AP
		CycleTime                      = 3.20 sec
		OptimalRange                   = 75 m
		Falloff                        = 125 m
		AmmoChargeType                 = Small bullets
		AmmoChargeCapacity             = 200 pcs
		Damage                         = 120 %
		HitDispersion                  = 5.00 •
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Standard light autocannon module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:56</remarks>
    public sealed class StandardLightAutocannon : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="StandardLightAutocannon"/> class.
        /// </summary>
        public StandardLightAutocannon()
            : base(
            "Standard light autocannon",
            "",
            ModuleMetaGroupsEnum.Weapons,
            ModuleGroupsEnum.Firearms,
            TechnologyLevelsEnum.Level1,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(WeaponCpuUsage<double>),5.00),
				new LazyFeature(typeof(WeaponReactorUsage<double>),15.00),
				new LazyFeature(typeof(ModuleMass<double>),400.00),
				new LazyFeature(typeof(WeaponAccumulatorUsage<double>),1.00),
				new LazyFeature(typeof(AmmunitionType<AmmunitionTypesEnum>),AmmunitionTypesEnum.SmallBullets),
				new LazyFeature(typeof(AmmoCapacity<double>),200),
				new LazyFeature(typeof(SmallFirearmCycleTime<double>),3.20),
				new LazyFeature(typeof(SmallFirearmOptimal<double>),75),
				new LazyFeature(typeof(SmallFirearmFalloff<double>),125),
				new LazyFeature(typeof(SmallFirearmDamage<double>),120),
				new LazyFeature(typeof(SmallFirearmHitDispersion<double>),5.00), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 400.00 ){ IsVisible = false }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Active; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Chassis; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Turret; }
        }
    }
}